// 读取用户输入的内容
// 计算机生成一个随机的内容
// 比较结果并输出

const { game } = require('./lib.js')
// const playerAction = process.argv[process.argv.length-1]
// const res = game(playerAction)
// console.log(res);
let count = 0
process.stdin.on('data',(e)=>{
  const playerAction = e.toString().trim()
  const res = game(playerAction)
  if (res === 1) {
    count++
  }
  if (count === 3) {
    console.log('太有实力了劳弟');
    process.exit()
  }
})




